package kr.re.kitri.magic;

public class MagicFactory {
	private static IMagic magic;
	public static IMagic Factory(int n){
		if (n%2!=0) {
			magic = new OddMagic(n);
		}else if(n%4==0){
			magic = new FourMagic(n);
		}else{
			magic = new SixMagic(n);
		}
		return magic;		
	}
	
}
